<?php
error_reporting(E_ALL ^ E_NOTICE);
defined('BASEPATH') OR exit('No direct script access allowed');
require APPPATH . 'libraries\Httpkit_class.php';

/**
 * Created by PhpStorm.
 * User: sunshubo
 * Date: 2017/9/26
 * Time: 14:12
 */
class MY_Controller extends CI_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->CI =& get_instance();
//        $this->CI->load->library('session');            //session verify
        $this->CI->load->helper('token');            //session verify
        $this->http = new Httpkit_class();              //http get post class
        $this->load->library('image_lib');
    }

    public function get_url($path = '')
    {
        return 'http://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"] . $path;
    }
}